package com.situ.spring.controller;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.situ.spring.service.IStudentService;

//@Controller("studentController")
@Controller
public class StudentController {
	// private IStudentService studentService = new StudentServiceImpl();
	
	//@Resource(name = "studentService")
	@Autowired
	private IStudentService studentService;
	/*
	 * public void setStudentService(IStudentService studentService) {
	 * System.out.println("StudentController.setStudentService()");
	 * this.studentService = studentService; }
	 */
	
	
	public void select() {
		System.out.println("StudentController.select()");
		studentService.select();
	}
}